#pragma once
#include "dataStruct.h"
#include "deskButton.h"


class CDesktopShowDlg : public CDialog
{

	DECLARE_DYNAMIC(CDesktopShowDlg)

public:
	explicit CDesktopShowDlg(UINT nIDTemplate, CWnd* pParentWnd = NULL);
	virtual ~CDesktopShowDlg();

// Dialog Data
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	void setAppPath(const CString& appPath){m_appPath = appPath;};
	void setArea(const areaInfo& Area);
	void releaseAllButton();
	void refreshAreaState(const areaInfo& Area);
private:
	areaInfo m_areaInfo;
	vector<CDeskButton*> m_vDesk;
	CString m_appPath;
protected:
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	int buttonWidth;
	int buttonHeight;
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
public:
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
};